﻿namespace CuongHanh.Models
{
    public class UpdateResult
    {
        //public static string INFORMATION_IN_USED = "informationhasbeenused";

        //public static string ERROR_WHEN_UPDATED = "errorwhenupdated";

        //public static string INFORMATION_HAS_EXISTS = "informationhasexists";

        //public static string WARNING_OVERQUOTA = "warningoverquota";

        public UpdateResult()
        {
            State = 4;
            Value = "update successful";
        }

        public UpdateResult(int state,
                object value)
        {
            State = state;
            Value = value;
        }

        /// <summary>
        ///     0 : Sucess
        ///     1 : Sucess
        ///     2 : Information
        ///     3 : Warning
        ///     4 : Error
        /// </summary>
        public int State { get; set; }

        public object Value { get; set; }
    }
}
